package com.java110.acct.payment.adapt.pxlc.utils;

public enum KeyType {
	none("0", "", "直接将key拼接在"), part("1", "&", "拼接用&连接"), all("2", "&key=", "拼接用&key=连接"), jm("3", "&signature=",
			"拼接用&signature=连接");

	private String numType;
	private String keyBlock;

	private KeyType(String numType, String keyBlock, String desc) {
		this.numType = numType;
		this.keyBlock = keyBlock;
	}

	public String getBlock() {
		return this.keyBlock;
	}

	public String getNumType() {
		return this.numType;
	}

	public static KeyType getItem(String numType) {
		for (KeyType c : values()) {
			if (c.getNumType().equals(numType)) {
				return c;
			}
		}
		return all;
	}
}
